import request from "@/utils/request";

export const getUserInfoAPI = (data = {}) => {
  return request({
    url: "/hometown/getUserInfo",
    method: "POST",
    data,
  });
};

// 小程序登录
export const wxLoginAPI = (data) => {
  return request({
    url: "/wxapi/login",
    method: "POST",
    data,
  });
};

// 小程序注册接口
export const wxRegisterAPI = (data) => {
  return request({
    url: "/wxapi/quickRegister",
    method: "POST",
    data,
  });
};

// 我的约课记录
export const getMyCourseRecordAPI = (data) => {
  return request({
    url: "/course/page",
    method: "POST",
    data,
  });
};

// 我的余额变更记录
export const getBalanceChangeRecordAPI = (data) => {
  return request({
    url: "/hometown/moneyRecordList",
    method: "POST",
    data,
  });
};

// 我的统计信息
export const getMyStatisticsAPI = (data) => {
  return request({
    url: "/hometown/statistics",
    method: "POST",
    data,
  });
};
